/**
 * @param {number[]} coins
 * @return {number}
*/
var minCount = function(coins) {
  let result = 0;
  for(let i = 0; i < coins.length; i++) {
    result += Math.ceil(coins[i] / 2);
  }
  return result;
};
let coins = [4,2,1];
console.log(minCount(coins));
coins = [2,3,10];
console.log(minCount(coins));
